package com.seu.clab.farm.model.dao.mapper;

import com.seu.clab.farm.model.dao.entity.Admin;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface AdminMapper extends Mapper<Admin> {
    int deleteByPrimaryKey(String aid);

    int insert(Admin record);

    Admin selectByPrimaryKey(String aid);

    List<Admin> selectAll();

    int updateByPrimaryKey(Admin record);

    @Select("SELECT * FROM admin where phone='${phone}'")
    Admin getOneAdminByPhone(String phone);
}